package cn.gcxy.entity;

import java.sql.Timestamp;

public class Commodity {
	  public Commodity(String tid, double price,String imgpath, String described, String name, int num, String adddate) {
		super();
		this.tid = tid;
		this.price = price;
		this.imgpath = imgpath;
		this.described = described;
		this.name = name;
		this.num = num;
		this.adddate = adddate;
	}
	private String id;
	  private String tid;
	  private String imgpath;
	  private double price;
	  private String described;
	  private String name;
	  private int num;
	  private String adddate;
	public Commodity(String id, String tid,String imgpath, String described, double price, String name, int num, String adddate) {
		super();
		this.id = id;
		this.tid = tid;
		this.described = described;
		this.imgpath = imgpath;
		this.price = price;
		this.name = name;
		this.num = num;
		this.adddate = adddate;
	}
	public Commodity(String id, String tid,  String imgpath, double price, String described, String name, int num,
			String adddate) {
		super();
		this.id = id;
		this.tid = tid;
		this.imgpath = imgpath;
		this.price = price;
		this.described = described;
		this.name = name;
		this.num = num;
		this.adddate = adddate;
	}
	public Commodity() {
		super();
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTid() {
		return tid;
	}
	public void setTid(String tid) {
		this.tid = tid;
	}
	public String getImgpath() {
		return imgpath;
	}
	public void setImgpath(String imgpath) {
		this.imgpath = imgpath;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public String getDescribed() {
		return described;
	}
	public void setDescribed(String described) {
		this.described = described;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
	}
	public String getAdddate() {
		return adddate;
	}
	public void setAdddate(String adddate) {
		this.adddate = adddate;
	}
	@Override
	public String toString() {
		return "id=" + id + ", tid=" + tid + ", imgpath=" + imgpath + ", price=" + price + ", described="
				+ described + ", name=" + name + ", num=" + num + ", adddate=" + adddate;
	}
	  
	
}
